<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>真人娱乐 - 好运网</title>
    <link rel="stylesheet" type="text/css" href="/css/basic.css"/>
    <link rel="stylesheet" type="text/css" href="/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="/css/common.css"/>
</head>
<body>
<div th:include="header::header"></div>

<div class="hyw-09 zryl re">
    <div class="hyw-08">
        <div class="warp re clearfix">
            <div class="tab_menu">
                <ul>
                    <li class="selected"><em></em></li>
                    <li class=""><em></em></li>
                    <li class=""><em></em></li>
                    <li class=""><em></em></li>
                </ul>
            </div>
            <div class="tab_box">
                <div style="display: block;">
                    <div class="tab_box_left">
                        <img src="/images/zryl-05.png">
                        <h6>如意厅(AG)</h6>
                        <a href="javascript:void(0)">进入场馆</a>
                    </div>
                    <div class="tab_box_right">
                        <img src="/images/zryl-09.png">
                    </div>
                    <div class="tab_box_bottom btom_01">
                        <img src="/images/zryl-13.png">
                        <img src="/images/zryl-14.png">
                        <img src="/images/zryl-15.png">
                    </div>
                </div>
                <div style="display: none;">
                    <div class="tab_box_left">
                        <img src="/images/zryl-06.png">
                        <h6>锦绣厅(HG)</h6>
                        <a th:if="${#lists.isEmpty(session.loginSession)}" href="javascript:void(0)">进入场馆</a>
                        <a th:if="${session.loginSession}" th:href="@{${session.loginSession.hgGameLobbyUrl}}"
                           target="_blank">进入场馆</a>
                    </div>
                    <div class="tab_box_right">
                        <img src="/images/zryl-10.png">
                    </div>
                    <div class="tab_box_bottom btom_01">
                        <img src="/images/zryl-13.png">
                        <img src="/images/zryl-14.png">
                        <img src="/images/zryl-15.png">
                    </div>
                </div>
                <div style="display: none;">
                    <div class="tab_box_left">
                        <img src="/images/zryl-07.png">
                        <h6>福瑞厅(Allbet)</h6>
                        <a href="javascript:void(0)">进入场馆</a>
                    </div>
                    <div class="tab_box_right">
                        <img src="/images/zryl-11.png">
                    </div>
                    <div class="tab_box_bottom btom_01">
                        <img src="/images/zryl-13.png">
                        <img src="/images/zryl-14.png">
                        <img src="/images/zryl-15.png">
                    </div>
                </div>
                <div style="display: none;">
                    <div class="tab_box_left">
                        <img src="/images/zryl-08.png">
                        <h6>吉祥厅(BBin)</h6>
                        <a href="javascript:void(0)">进入场馆</a>
                    </div>
                    <div class="tab_box_right">
                        <img src="/images/zryl-12.png">
                    </div>
                    <div class="tab_box_bottom btom_02">
                        <img src="/images/zryl-16.png">
                        <img src="/images/zryl-17.png">
                    </div>
                </div>
            </div>
            <!--赌桌-->
            <div class="desk ab"></div>
        </div>
    </div>
    <div class="warp hy-04-lf" style="margin-top: 100px;">
        <h7>热门推荐游戏</h7>
        <div class="banner">
            <div class="banner-warpper">
                <ul style="width: 4800px; margin-left: -1800px;">
                    <li>
                        <img src="/images/text-1.jpg">
                        <div class="text">
                            <h5>AG旗舰厅</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-2.jpg">
                        <div class="text">
                            <h5>AG骰宝</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-3.jpg">
                        <div class="text">
                            <h5>AG轮盘</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-4.jpg">
                        <div class="text">
                            <h5>Allbet龙虎斗</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-5.jpg">
                        <div class="text">
                            <h5>Allbet百家乐</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-6.jpg">
                        <div class="text">
                            <h5>HG兔水百家乐</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-7.jpg">
                        <div class="text">
                            <h5>二十一点</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-8.jpg">
                        <div class="text">
                            <h5>BBin轮盘</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-9.jpg">
                        <div class="text">
                            <h5>BBin竞骰</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-10.jpg">
                        <div class="text">
                            <h5>BBin牌丸</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-11.jpg">
                        <div class="text">
                            <h5>BBin百家乐</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-1.jpg">
                        <div class="text">
                            <h5>AG旗舰厅</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-2.jpg">
                        <div class="text">
                            <h5>AG骰宝</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-3.jpg">
                        <div class="text">
                            <h5>AG轮盘</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-4.jpg">
                        <div class="text">
                            <h5>Allbet龙虎斗</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                    <li>
                        <img src="/images/text-5.jpg">
                        <div class="text">
                            <h5>Allbet百家乐</h5>
                            <p>流畅百家乐视讯体验</p>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="u left"></div>
            <div class="u right"></div>
        </div>
    </div>
</div>

<script type="text/javascript">
    /*页卡*/
    var $div_li = $("div.tab_menu ul li");
    $div_li.click(function () {
        $(this).addClass("selected").siblings().removeClass("selected");
        var index = $div_li.index(this);
        $("div.tab_box > div").eq(index).show().siblings().hide();
        selectimg(index * 4);
    })

</script>

<script type="text/javascript">
    var p;
    var index = 0;
    //图片总个数
    var imgnum = $('.banner ul li').length;
    var nmun = '';
    //计算单个图片的宽度
    var imgwidth = $('.banner ul li').width() + 20;
    //计算所有左浮动图片的宽度
    var allimgwidth = imgwidth * imgnum;
    //设置ul宽度
    $('.banner ul').css('width', allimgwidth);


    $('.banner').hover(function () {
        //鼠标移动上来停止轮播
        clearInterval(p);
        //显示两边切换按钮
        //$('.banner .u').fadeIn();
    }, function () {
        //鼠标移开继续轮播
        pic();
        //隐藏两边按钮
        //$('.banner .u').fadeOut();
    });

    //轮播切换图片的函数，
    //思路就是通过定时器不停的改变index的值，
    //然后乘以宽度就是总宽度
    function pic() {
        p = setInterval(function () {
            index++;
            if (index >= imgnum) {
                index = 0;
            }
            //选择对应的图片
            selectimg(index);
        }, 3000);
    }

    function selectimg(index) {
        //通过改变ul往左边的距离显示对应的图片
        $('.banner ul').animate({'margin-left': '-' + imgwidth * index + 'px'}, 600);
        //切换图片并选择对应按钮
        $('.con a').eq(index).addClass('active').siblings('a').removeClass('active');
    }

    //点击左边的按钮选择对应的图片，往左切换图
    $('.banner .left').click(function () {
        /* $('.banner .right1').removeClass("right1");
         $(this).addClass("left1");*/
        index -= 1;
        if (index < 0) {
            index = imgnum - 4;
        }
        selectimg(index);
    });

    //点击左边的按钮选择对应的图片，往右切换图
    $('.banner .right').click(function () {
        /*      $('.banner .left1').removeClass("left1");
              $(this).addClass("right1");*/
        index += 1;
        if (index > imgnum - 4) {
            index = 0;
        }
        selectimg(index);

    });

    //根据图片个数写入对应按钮的个数
    for (var ni = 0; ni < imgnum; ni++) {
        nmun += "<a href='javascript:;'></a>";
    }
    $('.banner .con').html(nmun);
    $('.banner .con a').eq(0).addClass('active');

    //点击圆点选择对应的图片
    $('.con a').each(function (i) {
        $(this).click(function () {
            index = i;
            $('.banner ul').animate({'margin-left': '-' + imgwidth * i + 'px'}, 600);
            $('.con a').eq(index).addClass('active').siblings('a').removeClass('active');
        });
    });

    //默认开始执行
    pic();

</script>

<div th:include="footer::footer"></div>
<div th:include="right::right"></div>
</body>
</html>